package com.cq.hd.system.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ContentPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "内容端口(1-火动学堂，2-商户学堂)")
    private Integer contentPort;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "内容类型：0-富文本，1-URL链接")
    private Integer contentType;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "详情")
    private String details;

    @ApiModelProperty(value = "排序")
    private Integer contentSort;

    @ApiModelProperty(value = "状态（1-上架，2-下架）")
    private Integer state;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

}
